/ ========== TOOLS & ARMOR ==========

/ all wood, stone and gold tools
group(ID=wooden_sword;ID=wooden_shovel;ID=wooden_pickaxe;ID=wooden_axe;ID=wooden_hoe)@luck=0
group(ID=stone_sword;ID=stone_shovel;ID=stone_pickaxe;ID=stone_axe;ID=stone_hoe)@luck=0
group(ID=golden_sword;ID=golden_shovel;ID=golden_pickaxe;ID=golden_axe;ID=golden_hoe)@luck=1
/ 2-3 iron tools
group:#rand(2,3):(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=1
/ 1-2 diamond tools
group:#rand(1,2):(ID=diamond_sword;ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_hoe)@luck=2
/ all leather and gold armor
group(ID=leather_helmet;ID=leather_chestplate;ID=leather_leggings;ID=leather_boots)@luck=0
group(ID=golden_helmet;ID=golden_chestplate;ID=golden_leggings;ID=golden_boots;ID=golden_horse_armor)@luck=1
/ 2-3 chain and iron armor
group:#rand(2,3):(ID=chainmail_helmet;ID=chainmail_chestplate;ID=chainmail_leggings;ID=chainmail_boots)@luck=2
group:#rand(2,3):(ID=iron_helmet;ID=iron_chestplate;ID=iron_leggings;ID=iron_boots;ID=iron_horse_armor)@luck=1
/ 1-2 diamond armor
group:#rand(1,2):(ID=diamond_helmet;ID=diamond_chestplate;ID=diamond_leggings;ID=diamond_boots;ID=diamond_horse_armor)@luck=2
/ all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2
/ bow and arrows
group(ID=bow;ID=arrow,amount=#rand(16,32))@luck=1

/ ========== BLOCKS ==========

ID=sponge@luck=0
ID=tnt,amount=8@luck=1
ID=obsidian,amount=14@luck=1
ID=enchanting_table@luck=2
ID=end_portal_frame,amount=#rand(2,6)@luck=2
ID=dragon_egg@luck=1
ID=ender_chest,amount=2@luck=0
ID=beacon@luck=2
ID=dropper,amount=8@luck=0
ID=hay_block,amount=8@luck=0
ID=diamond_block@luck=2
ID=emerald_block@luck=2 
ID=gold_block@luck=1
ID=lapis_block@luck=1
ID=iron_block@luck=1
ID=coal_block@luck=0

/ chests
type=block,ID=chest,tileEntity=(Items=#chestVillageBlacksmith)@luck=0
type=block,ID=chest,tileEntity=(Items=#chestBonusChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chestDungeonChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chest(contents=[(id=iron_ingot,maxAmount=8,weight=10),(id=gold_ingot,maxAmount=4,weight=10),(id=diamond,maxAmount=4,weight=10),(id=emerald,maxAmount=4,weight=10),(id=dye,Damage=4,maxAmount=4,weight=10),(id=lucky:steam_lucky_block,maxAmount=2,weight=10),(id=golden_apple,maxAmount=2,weight=10),(id=golden_apple,Damage=1,maxAmount=2,weight=10)],maxTotalAmount=12))@luck=2

/Random Chest #1
type=block, ID=chest, tileEntity=(Items=[(id=emerald,Count=#rand(3,6),Slot=2),(id=gold_nugget,Count=#rand(9,27),Slot=11),(id=cooked_porkchop,Count=#rand(5,10),Slot=14)])@luck=1

/Random Chest #2
type=block, ID=chest, tileEntity=(Items=[(id=diamond,Count=#rand(2,4),Slot=1),(id=diamond_pickaxe,Count=1,Slot=6),(id=gold_block,Count=#rand(1,2),Slot=17),(id=stick,Count=#rand(2,4),Slot=22),(id=coal,Count=#rand(3,7),Slot=23)])@luck=1

/Random Chest #3
type=block, ID=chest, tileEntity=(Items=[(id=stick,Count=2,Slot=3),(id=stone_axe,Count=1,Slot=6),(id=iron_block,Count=2,Slot=13),(id=stick,Count=2,Slot=22),(id=coal,Count=16,Slot=25)])@luck=1

/Random Chest #4
type=block, ID=chest, tileEntity=(Items=[(id=lapis_block,Count=#rand(1,2),Slot=4),(id=stone_hoe,Count=1,Slot=7),(id=coal_block,Count=#rand(1,2),Slot=10),(id=web,Count=#rand(5,12),Slot=22),(id=iron_ingot,Count=#rand(5,16),Slot=24)])@luck=1

/Random Chest #5
type=block, ID=chest, tileEntity=(Items=[(id=golden_shovel,Count=1,Slot=0),(id=emerald,Count=#rand(3,6),Slot=4),(id=wooden_pickaxe,Count=1,Slot=10),(id=diamond,Count=#rand(2,4),Slot=15),(id=furnace,Count=2,Slot=22),(id=coal_block,Count=2,Slot=25)])@luck=1

/Random Chest #6
type=block, ID=chest, tileEntity=(Items=[(id=golden_apple,Count=#rand(1,2),Slot=0),(id=gold_ingot,Count=#rand(3,6),Slot=4),(id=iron_pickaxe,Count=1,Slot=10),(id=gold_block,Count=1,Slot=15),(id=apple,Count=2,Slot=18),(id=lapis_block,Count=1,Slot=20)])@luck=1@chance=0.8

/Randomized Chest #1
type=block,ID=chest,tileEntity=(Items=#chest(contents=[(id=stick,maxAmount=8,weight=10),(id=planks,maxAmount=8,weight=10),(id=coal,maxAmount=8,weight=10),(id=dirt,maxAmount=8,weight=10),(id=log,Damage=#rand(0,3),maxAmount=8,weight=10),(id=cobblestone,maxAmount=8,weight=10),(id=stone,maxAmount=2,weight=10)],maxTotalAmount=8))@luck=0

/Randomized Valuables Chest
type=block,ID=chest,tileEntity=(Items=#chest(contents=[(id=diamond,maxAmount=8,weight=10),(id=iron_ingot,maxAmount=8,weight=10),(id=emerald,maxAmount=8,weight=10),(id=gold_ingot,maxAmount=8,weight=10),(id=redstone,maxAmount=8,weight=10),(id=dye,Damage=4,maxAmount=8,weight=10),(id=lucky:lucky_block_night,maxAmount=2,weight=10)],maxTotalAmount=8))@luck=2

/Randomized Food Chest
type=block,ID=chest,tileEntity=(Items=#chest(contents=[(id=cooked_beef,maxAmount=8,weight=10),(id=baked_potato,maxAmount=8,weight=10),(id=cooked_chicken,maxAmount=8,weight=10),(id=bread,maxAmount=8,weight=10),(id=cooked_rabbit,maxAmount=8,weight=10),(id=golden_carrot,maxAmount=8,weight=10),(id=cooked_mutton,maxAmount=2,weight=10)],maxTotalAmount=8))@luck=2

/The Stick Chest
group(type=block, ID=chest, tileEntity=(Items=[(id=stick,Count=1,Slot=1),(id=stick,Count=1,Slot=2),(id=stick,Count=1,Slot=3),(id=stick,Count=1,Slot=4),(id=stick,Count=1,Slot=5),(id=stick,Count=1,Slot=6),(id=stick,Count=1,Slot=7),(id=stick,Count=1,Slot=8),(id=stick,Count=1,Slot=9),(id=stick,Count=1,Slot=10),(id=stick,Count=1,Slot=11),(id=stick,Count=1,Slot=12),(id=stick,Count=1,Slot=13),(id=stick,Count=1,Slot=14),(id=stick,Count=1,Slot=15),(id=stick,Count=1,Slot=16),(id=stick,Count=1,Slot=17),(id=stick,Count=1,Slot=18),(id=stick,Count=1,Slot=19),(id=stick,Count=1,Slot=20),(id=stick,Count=1,Slot=21),(id=stick,Count=1,Slot=22),(id=stick,Count=1,Slot=23),(id=stick,Count=1,Slot=24),(id=stick,Count=1,Slot=25),(id=stick,Count=1,Slot=26),(id=stick,Count=1,Slot=0)]))@luck=0

/The Hoe Chest
group(type=block, ID=chest, tileEntity=(Items=[(id=golden_hoe,Count=1,Slot=1),(id=diamond_hoe,Count=1,Slot=2),(id=wooden_hoe,Count=1,Slot=3),(id=golden_hoe,Count=1,Slot=4),(id=stone_hoe,Count=1,Slot=5),(id=iron_hoe,Count=1,Slot=6),(id=stone_hoe,Count=1,Slot=7),(id=diamond_hoe,Count=1,Slot=8),(id=golden_hoe,Count=1,Slot=9),(id=iron_hoe,Count=1,Slot=10),(id=golden_hoe,Count=1,Slot=11),(id=stone_hoe,Count=1,Slot=12),(id=diamond_hoe,Count=1,Slot=13),(id=iron_hoe,Count=1,Slot=14),(id=wooden_hoe,Count=1,Slot=15),(id=golden_hoe,Count=1,Slot=16),(id=stone_hoe,Count=1,Slot=17),(id=diamond_hoe,Count=1,Slot=18),(id=iron_hoe,Count=1,Slot=19),(id=stone_hoe,Count=1,Slot=20),(id=golden_hoe,Count=1,Slot=21),(id=diamond_hoe,Count=1,Slot=22),(id=wooden_hoe,Count=1,Slot=23),(id=stone_hoe,Count=1,Slot=24),(id=golden_hoe,Count=1,Slot=25),(id=diamond_hoe,Count=1,Slot=26),(id=iron_hoe,Count=1,Slot=0)]))@luck=1

/The Head Chest
group(type=block, ID=chest, tileEntity=(Items=[ID=skull,damage=0,Slot=1),(id=skull,damage=1,Count=1,Slot=2),(id=skull,damage=2,Count=1,Slot=3),(id=skull,damage=4,Count=1,Slot=4),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Blaze,display=(Name="$rBlaze Head“)),Count=1,Slot=5),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_CaveSpider,display=(Name="$rCave Spider Head")),Count=1,Slot=6),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Chicken,display=(Name="$rChicken Head")),Count=1,Slot=7),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Cow,display=(Name="$rCow Head")),Count=1,Slot=8),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Enderman,display=(Name="$rEnderman Head")),Count=1,Slot=9),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Ghast,display=(Name="$rGhast Head")),Count=1,Slot=10),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_LavaSlime,display=(Name="$rMagma Cube Head")),Count=1,Slot=11),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_MushroomCow,display=(Name="$rMooshroom Head")),Count=1,Slot=12),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Pig,display=(Name="$rPig Head")),Count=1,Slot=13),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_PigZombie,display=(Name="$rZombie Pigman Head")),Count=1,Slot=14),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Sheep,display=(Name="$rSheep Head")),Count=1,Slot=15),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Slime,display=(Name="$rSlime Head")),Count=1,Slot=16),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Spider,display=(Name="$rSpider Head")),Count=1,Slot=17),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Squid,display=(Name="$rSquid Head")),Count=1,Slot=18),(id=iron_hoe,Count=1,Slot=19),(id=stone_hoe,Count=1,Slot=20),(id=golden_hoe,Count=1,Slot=21),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Villager,display=(Name="$rVillager Head")),Count=1,Slot=22),(id=skull,damage=3,NBTTag=(SkullOwner=MHF_Golem,display=(Name="$rIron Golem Head")),Count=1,Slot=23),(id=skull,damage=0,Count=1,Slot=24),(id=golden_hoe,Count=1,Slot=25),(id=skull,damage=1,Count=1,Slot=26),(id=skull,damage=2,Count=1,Slot=0)]))@luck=1

/ ========= ITEMS ==========

ID=gold_ingot,amount=#rand(8,16)@luck=1
ID=stick@luck=-1
ID=painting,amount=4@luck=0
ID=saddle,amount=2@luck=0
ID=cake@luck=0
ID=rotten_flesh@luck=-1
ID=nether_star@luck=2
ID=red_flower,NBTTag=(display=(Name="$cRomantic Rose"))@luck=-1
ID=rabbit_stew,amount=#rand(5,7)@luck=1

/Alexes Diamonds
type=item, ID=diamond,NBTTag=(display=(Name=$bAlexes Diamonds))@luck=0

/Green Pearls
type=item, ID=emerald,amount=#rand(5,10),NBTTag=(display=(Name=$2Green Pearl))@luck=1

/Cake
type=item, ID=cake@luck=0

/Remedy (Milk)
type=item, ID=milk_bucket,amount=#rand(1,3),NBTTag=(display=(Name=$bRemedy))@luck=1

/Strawberry Shortcake
type=item, ID=cake,NBTTag=(display=(Name=$cStrawberry Shortcake))@luck=0

/Ender Chests
type=item,ID=ender_chest,amount=#rand(2,3)@luck=1

/Lush Green Grass
type=item, ID=grass,amount=#rand(4,16),NBTTag=(display=(Name=$2Lush Green Grass))@luck=0

/Wet Sponge
type=item, ID=sponge,damage=1,NBTTag=(display=(Name=$6Smelt me so I can be dry.))@luck=0

/Dry Sponge
type=item, ID=sponge@luck=1

/Nether Star
type=item, ID=nether_star@luck=2

/Beacon
type=item, ID=beacon@luck=2@chance=0.4

/End Stone
type=item, ID=end_stone,amount=#rand(4,12)@luck=1

/stupid cake
type=item, ID=cake,NBTTag=(display=(Name=$cStupid Cake))@luck=0

/unlucky fish
type=item, ID=fish,damage=#rand(0,3),amount=#rand(4,16),NBTTag=(ench=#luckyFishingRodEnchantments,display=(Name=$2Very unlucky fish))@luck=0

/ ========== GROUPS ==========

/Randomized Mob Heads
group:#rand(1,4):(ID=skull,damage=0;ID=skull,damage=1;ID=skull,damage=2;ID=skull,damage=4;ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Blaze,display=(Name="$rBlaze Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_CaveSpider,display=(Name="$rCave Spider Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Chicken,display=(Name="$rChicken Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Cow,display=(Name="$rCow Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Enderman,display=(Name="$rEnderman Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Ghast,display=(Name="$rGhast Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_LavaSlime,display=(Name="$rMagma Cube Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_MushroomCow,display=(Name="$rMooshroom Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Pig,display=(Name="$rPig Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_PigZombie,display=(Name="$rZombie Pigman Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Sheep,display=(Name="$rSheep Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Slime,display=(Name="$rSlime Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Spider,display=(Name="$rSpider Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Squid,display=(Name="$rSquid Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Villager,display=(Name="$rVillager Head"));ID=skull,damage=3,NBTTag=(SkullOwner=MHF_Golem,display=(Name="$rIron Golem Head")))@luck=0
/Prismarine Items
group(ID=prismarine,amount=#rand(5,10);ID=prismarine,damage=1,amount=#rand(4,8);ID=prismarine,damage=2,amount=#rand(4,8);ID=sea_lantern,amount=#rand(4,8);ID=prismarine_shard,amount=#rand(15,30);ID=prismarine_crystals,amount=#rand(10,30);type=particle,ID=2002,damage=14)@luck=1
/Stack of Glass
group(type=item,ID=glass,amount=#rand(8,16);type=item,ID=stained_glass,amount=#rand(32,64),damage=#rand(0,15);type=sound,ID=dig.glass)@luck=0
/Old Bacon (Rotten Flesh)
type=item, ID=rotten_flesh,NBTTag=(display=(Name=$aOld Bacon))@luck=-1
/Jukebox and Random Music Discs
group(type=item,ID=jukebox;type=item,ID=#rand(2256,2267),amount=#rand(2,3))@luck=1
/Experience Bottles
type=item,ID=experience_bottle,amount=#rand(32,64)
/All Stone Types
group(type=item,ID=stone,amount=64;type=item,ID=cobblestone,amount=64;type=item,ID=stone,amount=64,damage=1;type=item,ID=stone,amount=64,damage=2;type=item,ID=stone,amount=64,damage=3;type=item,ID=stone,amount=64,damage=4;type=item,ID=stone,amount=64,damage=5;type=item,ID=stone,amount=64,damage=6;type=item,ID=stonebrick,amount=64;type=item,ID=stonebrick,amount=64,damage=1;type=item,ID=stonebrick,amount=64,damage=2;type=item,ID=stonebrick,amount=64,damage=3;type=item,ID=mossy_cobblestone,amount=64)@luck=0
/Doors
group(type=item,ID=wooden_door;type=item,ID=acacia_door;type=item,ID=dark_oak_door;type=item,ID=birch_door;type=item,ID=jungle_door;type=item,ID=spruce_door)@luck=0
/Dragon Egg
type=item, ID=dragon_egg@luck=2

/ bookshelves and books
group(ID=bookshelf,amount=#rand(6,12);ID=book,amount=#rand(8,16))@luck=0
/ pumpkins and jack o'lanterns
group(ID=pumpkin,amount=#rand(8,16);ID=lit_pumpkin,amount=#rand(8,16))@luck=0
/ golden apples
group(ID=golden_apple,amount=#rand(2,4);ID=golden_apple,amount=#rand(1,2),damage=1)@luck=2
/ buckets
group(ID=bucket,amount=#rand(1,2);ID=water_bucket,amount=#rand(1,2);ID=lava_bucket,amount=#rand(1,2);ID=milk_bucket,amount=#rand(1,2))@luck=0
/ meat (raw and cooked)
group:1:(group(ID=porkchop,amount=#rand(8,16);ID=cooked_porkchop,amount=#rand(4,8));group(ID=fish,amount=#rand(8,16);ID=cooked_fish,amount=#rand(4,8));group(ID=beef,amount=#rand(8,16);ID=cooked_beef,amount=#rand(4,8));group(ID=chicken,amount=#rand(8,16);ID=cooked_chicken,amount=#rand(4,8));group(ID=mutton,amount=#rand(8,16);ID=cooked_mutton,amount=#rand(4,8));group(ID=rabbit,amount=#rand(8,16);ID=cooked_rabbit,amount=#rand(4,8)))@luck=1
/ vegetable food (carrots, potatoes, pumpkin pie)
group:1:(group(ID=carrot,amount=#rand(8,16);ID=golden_carrot,amount=#rand(4,8));group(ID=potato,amount=#rand(8,16);ID=baked_potato,amount=#rand(4,8);ID=poisonous_potato,amount=#rand(2,4));group(ID=pumpkin_pie,amount=#rand(6,12)))@luck=1
/ ender pearls and eyes 
group(ID=ender_pearl,amount=10;ID=ender_eye,amount=5)@luck=2
/ potions
ID=potion,damage=#randPotionDamage,amount=#rand(4,8)@luck=1
/ spawn eggs
ID=spawn_egg,damage=#randSpawnEggDamage,amount=#rand(4,8)@luck=1
/ heads
ID=skull,damage=#rand(0,4),amount=#rand(1,3)@luck=0
/ jukebox music discs
group(ID=jukebox;ID=#rand(2256,2267),amount=#rand(1,3))@luck=1
/ brewing
group(ID=ender_pearl,amount=#rand(1,3);ID=blaze_rod,amount=#rand(1,3);ID=ghast_tear,amount=#rand(1,3);ID=gold_nugget,amount=#rand(1,3);ID=nether_wart,amount=#rand(1,3);ID=spider_eye,amount=#rand(1,3);ID=fermented_spider_eye,amount=#rand(1,3);ID=blaze_powder,amount=#rand(1,3);ID=magma_cream,amount=#rand(1,3);ID=ender_eye,amount=#rand(1,3);ID=speckled_melon,amount=#rand(1,3);ID=rabbit_foot,amount=#rand(1,3);type=particle,ID=2002,damage=3)@luck=2
/ redstone
group(ID=dispenser,amount=2;ID=noteblock,amount=1;ID=sticky_piston,amount=4;ID=piston,amount=4;ID=tnt,amount=6;ID=lever,amount=2;ID=stone_pressure_plate,amount=2;ID=wooden_pressure_plate,amount=2;ID=redstone_torch,amount=8;ID=stone_button,amount=2;ID=trapdoor,amount=2;ID=iron_trapdoor,amount=2;ID=fence_gate,amount=1;ID=redstone_lamp,amount=4;ID=tripwire_hook,amount=2;ID=wooden_button,amount=2;ID=light_weighted_pressure_plate,amount=1;ID=heavy_weighted_pressure_plate,amount=1;ID=daylight_detector,amount=1;ID=hopper,amount=4;ID=dropper,amount=#rand(2,4);ID=wooden_door,amount=1;ID=iron_door,amount=1;ID=redstone,amount=#rand(32,64);ID=repeater,amount=8;ID=comparator,amount=2;type=particle,ID=2002,damage=9)@luck=2
/ colorful
group(group:1:(ID=wool,damage=#rand(0,15),amount=#rand(32,64);ID=stained_hardened_clay,damage=#rand(0,15),amount=#rand(32,64);ID=dye,damage=#rand(0,15),amount=#rand(32,64));type=particle,ID=2002,damage=#randPotionParticle,amount=10)@luck=1
/ iron, gold, diamond, emerald, lapis with fireworks
group(ID=iron_ingot,amount=#rand(8,16);ID=gold_ingot,amount=#rand(8,16);ID=diamond,amount=#rand(8,16);ID=emerald,amount=#rand(8,16);ID=dye,damage=4,amount=#rand(8,16);type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=20,posOffset=#circleOffset(0,2))@luck=2
/ quartz
group(ID=stone_slab,damage=7,amount=#rand(4,8);ID=quartz_ore,amount=#rand(16,32);ID=quartz_block,amount=#rand(4,8);ID=quartz_block,damage=1,amount=#rand(4,8);ID=quartz_block,damage=2,amount=#rand(4,8);ID=quartz_stairs,amount=#rand(4,8);ID=quartz,amount=#rand(24,32);type=particle,ID=2002,damage=14)@luck=1
/ fish
group(ID=fishing_rod;ID=349,damage=#rand(0,3),amount=#rand(10,20))@luck=1
/ message with mushroom
group(type=command,ID="/tell #pName Listen to me, #pName. You are in grave danger. You need to run. Now. Take this mushroom, it is your only hope.",commandSender="PlayerInDistress";ID=red_mushroom,NBTTag=(display=(Name="$cOnly Hope")))@luck=-1
/ random jokes
group:1:(ID=clock,NBTTag=(display=(Name="You're wasting your time"));ID=fish,damage=2,NBTTag=(display=(Name="I'm funny"));ID=fish,damage=3,NBTTag=(display=(Name="Oooooh!")))@luck=-1
/ flowers
group(ID=red_flower,damage=#rand(0,8),amount=64)@luck=0
/ enchantment books
ID=enchanted_book,NBTTag=(StoredEnchantments=#randEnchantment),amount=#rand(7,10)@luck=1
/ prismarine
group(ID=prismarine,amount=#rand(4,8);ID=prismarine,damage=1,amount=#rand(4,8);ID=prismarine,damage=2,amount=#rand(4,8);ID=sea_lantern,amount=#rand(4,8);ID=prismarine_shard,amount=#rand(15,30);ID=prismarine_crystals,amount=#rand(10,20);type=particle,ID=2002,damage=14)@luck=1

/ ========== ENTITIES ==========

/ lucky mobs
group:1:(type=entity,ID=Pig,NBTTag=(CustomName="$e$lLucky Pig",CustomNameVisible=true);type=entity,ID=Cow,NBTTag=(CustomName="$e$lLucky Cow",CustomNameVisible=true);type=entity,ID=Chicken,NBTTag=(CustomName="$e$lLucky Chicken",CustomNameVisible=true);type=entity,ID=Sheep,NBTTag=(CustomName="$e$lLucky Sheep",CustomNameVisible=true);type=entity,ID=Rabbit,NBTTag=(CustomName="$e$lLucky Rabbit",CustomNameVisible=true);type=entity,ID=Squid,NBTTag=(CustomName="$e$lUnlucky Squid",CustomNameVisible=true))@luck=0
/ colored sheep
type=entity,ID=Sheep,NBTTag=(CustomName="$cM$6r. $eR$aa$2i$bn$3b$5o$dw",CustomNameVisible=true,Color=#rand(0,15)),posOffset=#circleOffset(4),amount=16@luck=1

/ thrown eggs
group(type=entity,ID=ThrownEgg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=Item,NBTTag=(Item=(id=diamond,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2
/ thrown exp bottles
type=entity,ID=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=2
/ launched tnt
type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=15@luck=-2
/ lightning creeper group
group(type=difficulty,ID=hard;type=entity,ID=Creeper,amount=#rand(16,64);type=entity,ID=LightningBolt)@luck=-2
/ lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=Creeper;type=entity,ID=LightningBolt)@luck=-2

/ lightning villager group
group(type=difficulty,ID=hard;type=entity,ID=Villager,amount=#rand(16,64);type=entity,ID=LightningBolt)@luck=-2
/ lightning villager
group(type=difficulty,ID=hard;type=entity,ID=Villager;type=entity,ID=LightningBolt)@luck=-2

/ lightning pig group
group(type=difficulty,ID=hard;type=entity,ID=Pig,amount=#rand(16,64);type=entity,ID=LightningBolt)@luck=-2
/ lightning pig
group(type=difficulty,ID=hard;type=entity,ID=Pig;type=entity,ID=LightningBolt)@luck=-2

/ lightning rabit group
group(type=difficulty,ID=hard;type=entity,ID=Rabbit,amount=#rand(16,64);type=entity,ID=LightningBolt)@luck=-2
/ lightning rabit
group(type=difficulty,ID=hard;type=entity,ID=Rabbit;type=entity,ID=LightningBolt)@luck=-2

/ lightning Cow group
group(type=difficulty,ID=hard;type=entity,ID=Cow,amount=#rand(16,64);type=entity,ID=LightningBolt)@luck=-2
/ lightning Cow
group(type=difficulty,ID=hard;type=entity,ID=Cow;type=entity,ID=LightningBolt)@luck=-2

/When Pigs Fly
type=entity,ID=Pig,amount=25,NBTTag=(CustomName="$bWhen Pigs Fly",CustomNameVisible=true,Riding=(id="Bat",Silent=true,ActiveEffects=[(Id=14,Amplifier=1,Duration=40000,ShowParticles=false)]))@luck=0

/Cookie Creeper
type=entity,ID=Creeper,NBTTag=(Equipment=[(id=cookie,Count=64)],DropChances=[2f],Attributes=[(Name=generic.followRange,Base=0.0)],CustomName=$aCookie Creeper)@luck=2

/Villager Cowboy
group(type=difficulty,ID=hard;type=entity,ID=Villager,NBTTag=(Equipment=[(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$7$lCowboy",CustomNameVisible=true,Riding=(id=EntityHorse,Tame=true,Type=2,Riding=(id=Bat,Silent=true,ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))))@luck=1

/Zombie Horseman
group(type=difficulty,ID=hard;type=entity,ID=Zombie,NBTTag=(Equipment=[(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$7$lZombie Horseman",CustomNameVisible=true,Riding=(id=EntityHorse,Tame=true,Type=1,Riding=(id=Bat,Silent=true,ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))))@luck=0

/The Great Defender
type=entity, ID=VillagerGolem,NBTTag=(Equipment=[(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],Attributes=[(Name=generic.attackDamage,Base=50.0),(Name=generic.maxHealth,Base=100000)],CustomName=$e$lThe Great Defender)@luck=2

/ lightning horse group
group(type=difficulty,ID=hard;type=entity,ID=EntityHorse,amount=#rand(16,64);type=entity,ID=LightningBolt)@luck=-2
/ lightning pig
group(type=difficulty,ID=hard;type=entity,ID=EntityHorse;type=entity,ID=LightningBolt)@luck=-2

/Free Hugs!
type=entity,ID=Zombie,NBTTag=(CustomName="$aFree Hugs",Attributes=[(Name=generic.attackDamage,Base=0.0)])@luck=0

/Lucky Chickens with Emeralds
group(type=entity,ID=ThrownEgg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=50;type=entity,ID=Item,NBTTag=(Item=(id=emerald,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=#rand(5,15))@luck=2

/Thrown Experience Bottles #1
type=entity,ID=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=2

/Thrown Experience Bottles #2
type=entity,ID=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(32,48)@luck=2@chance=0.8

/Thrown Experience Bottles #3
type=entity,ID=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(48,64)@luck=2@chance=0.6

/explosiv exp
type=entity,ID=PrimedTnt,Riding=(type=entity,ID=XPOrb),amount=#rand(48,64)@luck=-1

/ giant
group(type=difficulty,ID=hard;type=entity,ID=Giant)@luck=-2
/ wither
group(type=difficulty,ID=hard;type=entity,ID=WitherBoss)@chance=0.1@luck=-2
/ ghast
group(type=difficulty,ID=hard;type=entity,ID=Ghast)@chance=0.2@luck=-2
/ elder guardian
group(type=difficulty,ID=hard;type=entity,ID=Guardian,NBTTag=(Elder=1)))@chance=0.5@luck=-2
/ killer rabbit
group(type=difficulty,ID=hard;type=entity,ID=Rabbit,NBTTag=(RabbitType=99))@luck=-1
/ lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=Creeper;type=entity,ID=LightningBolt)@luck=-2
/ bob zombie
group(type=difficulty,ID=hard;type=entity,ID=Zombie,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lBob",CustomNameVisible=true))@luck=-2

/ butcher
group(type=difficulty,ID=hard;type=entity,ID=Zombie,NBTTag=(Equipment=[(id=diamond_axe,Count=1,tag=(ench=#luckySwordEnchantments)),(id=chain_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=leather_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=leather_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=iron_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lButcher“,CustomNameVisible=true))@luck=-2

/ ghostly horseman skeleton
group(type=difficulty,ID=hard;type=entity,ID=Skeleton,NBTTag=(Equipment=[(id=bow,Count=1,tag=(ench=#luckyBowEnchantments)),(id=chainmail_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=chainmail_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=chainmail_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=chainmail_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$7$lGhostly Horseman",CustomNameVisible=true,Riding=(id=EntityHorse,Tame=true,Type=4,Riding=(id=Bat,Silent=true,ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))))@luck=-2

/ ghostly horseman skeleton ground
group(type=difficulty,ID=hard;type=entity,ID=Skeleton,NBTTag=(Equipment=[(id=bow,Count=1,tag=(ench=#luckyBowEnchantments)),(id=chainmail_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=chainmail_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=chainmail_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=chainmail_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$7$lGhostly Horseman",CustomNameVisible=true,Riding=(id=EntityHorse,Tame=true,Type=4)))@luck=-2

/ stacked villager and pigs
type=entity,ID=Villager,NBTTag=(Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig))))))))@luck=0

/ stacked zwombie
type=entity,ID=Villager,NBTTag=(Riding=(id=Blaze,Riding=(id=Pig,Riding=(id=Zombie,Riding=(id=Ghast,Riding=(id=Bat,Riding=(id=Villager,Riding=(id=Skeleton))))))))@luck=0

/ stacked villager and pigs + lightning
type=entity,ID=Villager,NBTTag=(Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig);type=entity,ID=LightningBolt)))))))@luck=0

/ horses
type=entity,ID=EntityHorse,amount=12,posOffset=#circleOffset(4),NBTTag=(Type=#rand(0,4),Tame=true)@luck=1

/ witch with bats
group(type=difficulty,ID=hard;type=entity,ID=Witch;type=entity,ID=Bat,posY=#bPosY+#rand(0,2),posOffset=#circleOffset(0,1),amount=64)@luck=-1

/ bats
group(type=time,ID=111123;type=entity,ID=Bat,posY=#bPosY+#rand(0,2),posOffset=#circleOffset(5,50),amount=64)@luck=-1

/ huge slime and magma cube
group:1:(type=entity,ID=Slime,NBTTag=(Size=10);type=entity,ID=LavaSlime,NBTTag=(Size=10))@luck=-2

/ pet wolves
group(type=entity,ID=Wolf,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CollarColor=#rand(0,14),Owner=#pName,Sitting=1);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1
/ pet cats
group(type=entity,ID=Ozelot,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CatType=#rand(0,3),Owner=#pName,Sitting=1);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1
/ pet rabbits
group(type=entity,ID=Rabbit,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(RabbitType=#rand(0,5),Owner=#pName,Sitting=1);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/Evil Villager
group(type=command,ID="/gamerule commandBlockOutput false";type=entity,ID=Skeleton,NBTTag=(SkeletonType=1,Silent=true,CustomName="EvilVillager",Equipment=[(id=diamond_sword),(id=leather_helmet),(id=leather_chestplate),(id=leather_leggings),(id=skull,Count=1,Damage=3,tag=(SkullOwner=MHF_Villager))]);type=command,ID="/entitydata @e[c=1,name=EvilVillager] {ForgeData:{LootPPCommands:{CommandList:["playsound mob.villager.idle @a ~ ~ ~ 1.0 1.0"],Repeat:true,Time:99,Delays:[100],CommandListOnHurt:["playsound mob.villager.hit @a ~ ~ ~ 1.0 1.0"],CommandListOnDeath:["playsound mob.villager.death @a ~ ~ ~ 1.0 1.0"]}}}")@luck=-2

/Mutant Mooshroom
group(type=command,ID="/gamerule commandBlockOutput false";type=entity,ID=Zombie,NBTTag=(Silent=true,Attributes=[(Name=generic.maxHealth,Base=300)],CustomName="MutantMooshroom",Equipment=[(id=iron_sword),(id=leather_helmet),(id=leather_chestplate),(id=leather_leggings),(id=skull,Count=1,Damage=3,tag=(display=(Name="$2Mooshroom's Head"),SkullOwner=Mooshroom))]);type=command,ID="/entitydata @e[c=1,name=MutantMooshroom] {ForgeData:{LootPPCommands:{CommandList:["playsound mob.cow.say @a ~ ~ ~ 1.0 1.0"],Repeat:true,Time:99,Delays:[100],CommandListOnHurt:["playsound mob.cow.hurt @a ~ ~ ~ 1.0 1.0"],CommandListOnDeath:["playsound mob.cow.hurt @a ~ ~ ~ 1.0 1.0"]}}}")@luck=-2

/Undead Miner
type=entity,ID=Zombie,NBTTag=(Equipment=[(id=diamond_pickaxe,Count=1,tag=(ench=#luckySwordEnchantments)),(id=leather_helmet,Count=1),(id=leather_chestplate,Count=1),(id=leather_leggings,Count=1),(id=golden_boots,Count=1)],CustomName="$aUndead Miner",CustomNameVisible=true)@luck=-2

/Low Rider
type=entity,ID=Skeleton,amount=10,posOffset=circleOffset(5,10),NBTTag=(SkeletonType=1,Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=iron_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=iron_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=iron_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=iron_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],CustomName="$aLow Rider",CustomNameVisible=true,Riding=(id=Chicken))@luck=-2

/Random Hostile Mobs on a Bat
type=entity,ID=#randList(Creeper,Zombie,Skeleton,PigZombie,Enderman,Blaze,Ghast,Spider,CaveSpider,Slime,LavaSlime,Silverfish,Witch,Endermite,Giant,Guardian),amount=30,NBTTag=(Riding=(id=Bat))@luck=-2

/Johnny
group(type=difficulty,ID=hard;type=entity,ID=PigZombie,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=iron_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=iron_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=iron_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=iron_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lJohnny",CustomNameVisible=true))@luck=-1

/George the Wither Skeleton
group(type=difficulty,ID=hard;type=entity,ID=Skeleton,NBTTag=(SkeletonType=1,Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=golden_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=golden_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=golden_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=golden_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],Attributes=[(Name=generic.maxHealth,Base=4000)],CustomName="$2George",CustomNameVisible=true))@luck=-2

/George Tribe
group(type=difficulty,ID=hard;type=entity,ID=Skeleton,amount=50,posOffset=#circleOffset(5,40),NBTTag=(SkeletonType=1,Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=golden_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=golden_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=golden_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=golden_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],Attributes=[(Name=generic.maxHealth,Base=1000)],CustomName="$2$lGeorge Tribe",CustomNameVisible=true);type=message,ID=$2$lGEORGE TRIBE)@luck=-2

/Skellie the Skeleton
group(type=difficulty,ID=hard;type=entity,ID=Skeleton,NBTTag=(Equipment=[(id=bow,Count=1,tag=(ench=#luckyBowEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],Attributes=[(Name=generic.maxHealth,Base=3000)],CustomName="$6 =#circleOffset(5,45),delay=2;type=entity,ID=Zombie,amount=50,posOffset=#circleOffset(5,45),delay=7;type=entity,ID=Zombie,amount=50,posOffset=#circleOffset(5,45),delay=12;type=entity,ID=Zombie,amount=50,posOffset=#circleOffset(5,45),delay=17;type=entity,ID=Zombie,amount=50,posOffset=#circleOffset(5,45),delay=22;type=entity,ID=Zombie,amount=70,posOffset=#circleOffset(5,45),delay=27;type=time,ID=13333;type=message,ID=$eZOMBIE APOCALYPSE)@luck=-2

/A Big Problem (Giants)
group(type=entity,ID=Giant,amount=15,posOffset=#circleOffset(5,45),delay=2;type=entity,ID=Giant,amount=6,posOffset=#circleOffset(5,45),delay=10;type=entity,ID=Giant,amount=15,posOffset=#circleOffset(5,45),delay=14;type=entity,ID=Giant,amount=20,posOffset=#circleOffset(5,45),delay=18;type=entity,ID=Giant,amount=20,posOffset=#circleOffset(5,45),delay=22;type=entity,ID=Giant,amount=25,posOffset=#circleOffset(5,45),delay=26;type=time,ID=13333;type=message,ID=$eA BIG PROBLEM)@luck=-2

/Creeper Invasion
group(type=entity,ID=Creeper,amount=50,posOffset=#circleOffset(5,45),delay=2;type=entity,ID=Creeper,amount=50,posOffset=#circleOffset(5,45),delay=6;type=entity,ID=Creeper,amount=50,posOffset=#circleOffset(5,45),delay=10;type=entity,ID=Creeper,amount=50,posOffset=#circleOffset(5,45),delay=15;type=entity,ID=Creeper,amount=50,posOffset=#circleOffset(5,45),delay=20;type=entity,ID=Creeper,amount=70,posOffset=#circleOffset(5,45),delay=25;type=entity,ID=Creeper,amount=120,posOffset=#circleOffset(5,45),delay=30;type=time,ID=13333;type=message,ID=$eCREEPER INVASION)@luck=-2

/The Haunted Hoe
group(type=difficulty,ID=hard;type=command,delay=0.4,ID=\"/title @p[name=#pName] title {text:\"Mob Battle\",color:dark_red,bold:true}\";type=command,ID=\"/title @p[name=#pName] subtitle {text:\"THE HAUNTED HOE\",color:yellow}\";type=entity,ID=Skeleton,NBTTag=(SkeletonType=1,Silent=true,Equipment=[(id=wooden_hoe,Count=1,tag=(ench=#luckySwordEnchantments))],Attributes=[(Name=generic.maxHealth,Base=2500)],ActiveEffects=[(Id=14,Amplifier=1,Duration=40000)],CustomName="$aHaunted Hoe",CustomNameVisible=true);type=command,ID=\"/playsound records.13 @a ~ ~ ~ 3.0 1.0\",delay=0.5)luck=-2

/The Haunted sword
group(type=difficulty,ID=hard;type=command,delay=0.4,ID=\"/title @p[name=#pName] title {text:\"Mob Battle\",color:dark_red,bold:true}\";type=command,ID=\"/title @p[name=#pName] subtitle {text:\"THE HAUNTED SWORD\“,color:yellow}\";type=entity,ID=Skeleton,NBTTag=(SkeletonType=1,Silent=true,Equipment=[(id=wooden_sword,Count=1,tag=(ench=#luckySwordEnchantments))],Attributes=[(Name=generic.maxHealth,Base=2500)],ActiveEffects=[(Id=14,Amplifier=1,Duration=40000)],CustomName="$aHaunted Hoe",CustomNameVisible=true);type=command,ID=\"/playsound records.13 @a ~ ~ ~ 3.0 1.0\",delay=0.5)luck=-2
/The Haunted Pick
group(type=difficulty,ID=hard;type=command,delay=0.4,ID=\"/title @p[name=#pName] title {text:\"Mob Battle\",color:dark_red,bold:true}\";type=command,ID=\"/title @p[name=#pName] subtitle {text:\"THE HAUNTED PICKAXE\“,color:yellow}\";type=entity,ID=Skeleton,NBTTag=(SkeletonType=1,Silent=true,Equipment=[(id=wooden_pickaxe,Count=1,tag=(ench=#luckySwordEnchantments))],Attributes=[(Name=generic.maxHealth,Base=2500)],ActiveEffects=[(Id=14,Amplifier=1,Duration=40000)],CustomName="$aHaunted Hoe",CustomNameVisible=true);type=command,ID=\"/playsound records.13 @a ~ ~ ~ 3.0 1.0\",delay=0.5)luck=-2
/The Haunted Axe
group(type=difficulty,ID=hard;type=command,delay=0.4,ID=\"/title @p[name=#pName] title {text:\"Mob Battle\",color:dark_red,bold:true}\";type=command,ID=\"/title @p[name=#pName] subtitle {text:\"THE HAUNTED AXE\“,color:yellow}\";type=entity,ID=Skeleton,NBTTag=(SkeletonType=1,Silent=true,Equipment=[(id=wooden_axe,Count=1,tag=(ench=#luckySwordEnchantments))],Attributes=[(Name=generic.maxHealth,Base=2500)],ActiveEffects=[(Id=14,Amplifier=1,Duration=40000)],CustomName="$aHaunted Hoe",CustomNameVisible=true);type=command,ID=\"/playsound records.13 @a ~ ~ ~ 3.0 1.0\",delay=0.5)luck=-2

/some spawners
type=entity,ID=MinecartSpawner,amount=5000000,posOffset=#circleOffset(5,105);type=time,ID=15003;type=message,ID=$aSome Spawners for you)@luck=0@chance=0.7

/Mob Takeover
group(type=entity,ID=Zombie,amount=50,posOffset=#circleOffset(5,45);type=entity,ID=PigZombie,amount=50,posOffset=#circleOffset(5,45);type=entity,ID=Ghast,amount=50,posOffset=#circleOffset(5,45);type=entity,ID=Blaze,amount=50,posOffset=#circleOffset(5,45);type=entity,ID=Skeleton,amount=50,posOffset=#circleOffset(5,45);type=entity,ID=Creeper,amount=70,posOffset=#circleOffset(5,45);type=entity,ID=Enderman,amount=70,posOffset=#circleOffset(5,45);type=entity,ID=Witch,amount=50,posOffset=#circleOffset(5,45);type=entity,ID=WitherBoss,amount=5,posOffset=#circleOffset(5,45);type=time,ID=15003;type=message,ID=$aMOB TAKEOVER)@luck=-2@chance=0.7

/ lucky villagers
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments,display=(Name="$e$lLucky Sword"))),maxUses=1),(buy=(id=diamond,Count=#rand(20,25)),sell=(id=bow,Count=1,tag=(ench=#luckyBowEnchantments,display=(Name="$e$lLucky Bow"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(ench=#luckyFishingRodEnchantments,display=(Name="$e$lLucky Fishing Rod"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8195,Count=1,tag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(7,12)),sell=(id=potion,Damage=16428,Count=1,tag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lUnlucky Potion"))),maxUses=1)]),CustomName="$e$lLucky Villager",CustomNameVisible=true)@luck=1
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(12,17)),sell=(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments,display=(Name="$e$lLucky Helmet"))),maxUses=1),(buy=(id=diamond,Count=#rand(20,25)),sell=(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments,display=(Name="$e$lLucky Chestplate"))),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments,display=(Name="$e$lLucky Leggings"))),maxUses=1),(buy=(id=diamond,Count=#rand(12,17)),sell=(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments,display=(Name="$e$lLucky Boots"))),maxUses=1)]),CustomName="$e$lLucky Villager",CustomNameVisible=true)@luck=1
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(10,15)),sell=(id=diamond_shovel,Count=1,tag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Shovel"))),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=diamond_pickaxe,Count=1,tag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Pickaxe"))),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=diamond_axe,Count=1,tag=(ench=#luckyAxeEnchantments,display=(Name="$e$lLucky Axe"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=diamond_hoe,Count=1,tag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Hoe"))),maxUses=1)]),CustomName="$e$lLucky Villager",CustomNameVisible=true)@luck=1
/The Three Musketeers
type=entity,ID=Villager,amount=3,NBTTag=(Profession=3,CustomName=$8The Three Musketeers)@luck=1
/Apple Collector
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=apple,Count=#rand(10,15)),sell=(id=iron_ingot,Count=#rand(5,10)),maxUses=3),(buy=(id=golden_apple,Count=#rand(1,3)),sell=(id=diamond,Count=3),maxUses=3),(buy=(id=golden_apple,Count=1,Damage=1),sell=(id=gold_block,Count=#rand(8,14)),maxUses=3)]),CustomName=$e$lApple Collector)@luck=2
/Tool Crafter
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=planks,Count=2),buyB=(id=stick,Count=2),sell=(id=wooden_hoe,Count=1),maxUses=25),(buy=(id=cobblestone,Count=2),buyB=(id=stick,Count=2),sell=(id=stone_hoe,Count=1),maxUses=25),(buy=(id=iron_ingot,Count=2),buyB=(id=stick,Count=2),sell=(id=iron_hoe,Count=1),maxUses=25),(buy=(id=gold_ingot,Count=2),buyB=(id=stick,Count=2),sell=(id=golden_hoe,Count=1),maxUses=25),(buy=(id=diamond,Count=2),buyB=(id=stick,Count=2),sell=(id=diamond_hoe,Count=1),maxUses=25),(buy=(id=planks,Count=3),buyB=(id=stick,Count=2),sell=(id=wooden_pickaxe,Count=1),maxUses=25),(buy=(id=cobblestone,Count=3),buyB=(id=stick,Count=2),sell=(id=stone_pickaxe,Count=1),maxUses=25),(buy=(id=iron_ingot,Count=3),buyB=(id=stick,Count=2),sell=(id=iron_pickaxe,Count=1),maxUses=25),(buy=(id=gold_ingot,Count=3),buyB=(id=stick,Count=2),sell=(id=golden_pickaxe,Count=1),maxUses=25),(buy=(id=diamond,Count=3),buyB=(id=stick,Count=2),sell=(id=diamond_pickaxe,Count=1),maxUses=25),(buy=(id=planks,Count=1),buyB=(id=stick,Count=2),sell=(id=wooden_shovel,Count=1),maxUses=25),(buy=(id=cobblestone,Count=1),buyB=(id=stick,Count=2),sell=(id=stone_shovel,Count=1),maxUses=25),(buy=(id=iron_ingot,Count=1),buyB=(id=stick,Count=2),sell=(id=iron_shovel,Count=1),maxUses=25),(buy=(id=gold_ingot,Count=1),buyB=(id=stick,Count=2),sell=(id=golden_shovel,Count=1),maxUses=25),(buy=(id=diamond,Count=1),buyB=(id=stick,Count=2),sell=(id=diamond_shovel,Count=1),maxUses=25),(buy=(id=iron_ingot,Count=2),sell=(id=shears,Count=1),maxUses=25),(buy=(id=flint,Count=1),buyB=(id=iron_ingot,Count=1),sell=(id=flint_and_steel,Count=1),maxUses=25)]),Profession=3,Career=3,CustomName=$e$lTool Crafter)@luck=2
/Where the Hoes At (Hoe Collector)
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=wooden_hoe,Count=1),sell=(id=iron_ingot,Count=#rand(2,5)),maxUses=3),(buy=(id=golden_hoe,Count=1),sell=(id=emerald,Count=1),maxUses=3),(buy=(id=iron_hoe,Data=1,Count=1),sell=(id=gold_ingot,Count=4),maxUses=3),(buy=(id=diamond_hoe,Count=1),sell=(id=redstone,Count=4),maxUses=3),(buy=(id=stone_hoe,Count=1),sell=(id=diamond,Count=1),maxUses=3)]),CustomName=$e$lWhere the Hoes At?)@luck=2
/Got Milk?
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=1),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fWhole Milk"))),maxUses=3),(buy=(id=emerald,Count=1),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fReduced Fat Milk"))),maxUses=3),(buy=(id=iron_ingot,Count=3),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fSkim Milk"))),maxUses=3),(buy=(id=gold_ingot,Count=2),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fAlmond Milk"))),maxUses=3),(buy=(id=diamond,Count=1),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fSoy Milk"))),maxUses=3),(buy=(id=emerald,Count=1),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fGoat Milk"))),maxUses=3),(buy=(id=iron_ingot,Count=3),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fEvaporated Milk"))),maxUses=3),(buy=(id=gold_ingot,Count=2),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fCondensed Milk"))),maxUses=3),(buy=(id=diamond,Count=1),sell=(id=milk_bucket,Count=1,tag=(display=(Name="$fOrganic Milk"))),maxUses=3)]),CustomName=$e$lGot Milk?)@luck=2
/Chef
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=emerald,Count=1),sell=(id=cooked_chicken,Count=5),maxUses=3),(buy=(id=diamond,Count=1),sell=(id=cooked_beef,Count=5),maxUses=3),(buy=(id=iron_ingot,Count=3),sell=(id=cooked_rabbit,Count=2),maxUses=3),(buy=(id=gold_ingot,Count=2),sell=(id=cooked_porkchop,Count=5),maxUses=3),(buy=(id=lapis_block,Count=1),sell=(id=pumpkin_pie,Count=3),maxUses=3),(buy=(id=redstone_block,Count=1),sell=(id=baked_potato,Count=6),maxUses=3),(buy=(id=emerald,Count=1),sell=(id=bread,Count=6),maxUses=3),(buy=(id=iron_ingot,Count=3),sell=(id=melon,Count=10),maxUses=3),(buy=(id=lapis_block,Count=1),sell=(id=cooked_fish,Count=6),maxUses=3),(buy=(id=diamond,Count=1),sell=(id=cooked_fish,Damage=1,Count=6),maxUses=3),(buy=(id=gold_ingot,Count=2),sell=(id=carrot,Count=8),maxUses=3),(buy=(id=emerald,Count=3),sell=(id=golden_carrot,Count=12),maxUses=3),(buy=(id=iron_ingot,Count=2),sell=(id=cookie,Count=14),maxUses=3),(buy=(id=dye,Damage=4,Count=5),sell=(id=rabbit_stew,Count=1),maxUses=3),(buy=(id=coal_block,Count=1),sell=(id=mushroom_stew,Count=1),maxUses=3)]),CustomName=$e$lChef)@luck=2

/ falling blocks (iron, gold, diamond, emerald)
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=iron_block);type=particle,ID=largesmoke,size=(1,2,1),particleAmount=500;type=sound,ID=random.fizz)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=gold_block);type=particle,ID=flame,size=(1,2,1),particleAmount=500;type=sound,ID=item.fireCharge.use)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=diamond_block);type=entity,ID=LightningBolt)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=emerald_block);type=particle,ID=happyVillager,size=(1,2,1),particleAmount=500;type=sound,ID=dig.grass)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=lapis_block);type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=game.neutral.swim.splash)@luck=0

/ colorful pole
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=stained_hardened_clay,Data=14),posY=#bPosY+5;NBTTag=(Block=stained_hardened_clay,Data=1),posY=#bPosY+10;NBTTag=(Block=stained_hardened_clay,Data=4),posY=#bPosY+15;NBTTag=(Block=stained_hardened_clay,Data=5),posY=#bPosY+20;NBTTag=(Block=stained_hardened_clay,Data=3),posY=#bPosY+25;NBTTag=(Block=stained_hardened_clay,Data=11),posY=#bPosY+30;NBTTag=(Block=stained_hardened_clay,Data=10),posY=#bPosY+35;NBTTag=(Block=stained_hardened_clay,Data=2),posY=#bPosY+40;NBTTag=(Block=stained_hardened_clay,Data=6),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=diamond_block),posY=#bPosY+50;type=entity,ID=LightningBolt,posY=#bPosY+10,delay=5.3)@luck=2

/ steam pole
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=lucky:steam_lucky_block,Data=14),posY=#bPosY+5;NBTTag=(Block=lucky:steam_lucky_block,Data=1),posY=#bPosY+10;NBTTag=(Block=lucky:steam_lucky_block,Data=4),posY=#bPosY+15;NBTTag=(Block=lucky:steam_lucky_block,Data=5),posY=#bPosY+20;NBTTag=(Block=lucky:steam_lucky_block,Data=3),posY=#bPosY+25;NBTTag=(Block=lucky:steam_lucky_block,Data=11),posY=#bPosY+30;NBTTag=(Block=lucky:steam_lucky_block,Data=10),posY=#bPosY+35;NBTTag=(Block=lucky:steam_lucky_block,Data=2),posY=#bPosY+40;NBTTag=(Block=lucky:steam_lucky_block,Data=6),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=emerald_block),posY=#bPosY+50;type=entity,ID=LightningBolt,posY=#bPosY+10,delay=5.3)@luck=2

/ Tennis pole
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=lucky:lucky_block,Data=14),posY=#bPosY+5;NBTTag=(Block=lucky:lucky_block,Data=1),posY=#bPosY+10;NBTTag=(Block=lucky:lucky_block,Data=4),posY=#bPosY+15;NBTTag=(Block=lucky:lucky_block,Data=5),posY=#bPosY+20;NBTTag=(Block=lucky:lucky_block,Data=3),posY=#bPosY+25;NBTTag=(Block=lucky:lucky_block,Data=11),posY=#bPosY+30;NBTTag=(Block=lucky:lucky_block,Data=10),posY=#bPosY+35;NBTTag=(Block=lucky:lucky_block,Data=2),posY=#bPosY+40;NBTTag=(Block=lucky:lucky_block,Data=6),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=diamond_block),posY=#bPosY+50;type=entity,ID=LightningBolt,posY=#bPosY+10,delay=5.3)@luck=2

/ game pole
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=lucky:tnt,Data=14),posY=#bPosY+5;NBTTag=(Block=lucky:tnt,Data=1),posY=#bPosY+10;NBTTag=(Block=lucky:tnt,Data=4),posY=#bPosY+15;NBTTag=(Block=lucky:tnt,Data=5),posY=#bPosY+20;NBTTag=(Block=lucky:tnt,Data=3),posY=#bPosY+25;NBTTag=(Block=lucky:tnt,Data=11),posY=#bPosY+30;NBTTag=(Block=lucky:tnt,Data=10),posY=#bPosY+35;NBTTag=(Block=lucky:tnt,Data=2),posY=#bPosY+40;NBTTag=(Block=lucky:tnt,Data=6),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=lava),posY=#bPosY+50;type=entity,ID=LightningBolt,posY=#bPosY+10,delay=5.3)@luck=2

/ tnt pole
group(type=fill,ID=air,size=(1,51,1);type=entity,ID=FallingSand,NBTTag=(Block=redstone_block),posY=#bPosY+5;group(posY=#bPosY+10;posY=#bPosY+15;posY=#bPosY+20;posY=#bPosY+25;posY=#bPosY+30;posY=#bPosY+35;posY=#bPosY+40;posY=#bPosY+45;posY=#bPosY+50),type=entity,ID=FallingSand,NBTTag=(Block=tnt))@luck=2

/ fuse pole
group(type=fill,ID=air,size=(1,51,1);type=entity,ID=FallingSand,NBTTag=(Block=fire),posY=#bPosY+45;group(posY=#bPosY+10;posY=#bPosY+15;posY=#bPosY+20;posY=#bPosY+25;posY=#bPosY+30;posY=#bPosY+35;posY=#bPosY+40;posY=#bPosY+45;posY=#bPosY+50),type=entity,ID=FallingSand,NBTTag=(Block=tnt);type=entity,ID=LighningBolt)@luck=2

/Stone Tower with Emerald Block at Top
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=stone),posY=#bPosY+5;NBTTag=(Block=stone),posY=#bPosY+10;NBTTag=(Block=stone),posY=#bPosY+15;NBTTag=(Block=stone),posY=#bPosY+20;NBTTag=(Block=stone),posY=#bPosY+25;NBTTag=(Block=stone),posY=#bPosY+30;NBTTag=(Block=stone),posY=#bPosY+35;NBTTag=(Block=stone),posY=#bPosY+40;NBTTag=(Block=stone),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=emerald_block),posY=#bPosY+50;type=entity,ID=LightningBolt,posY=#bPosY+10,delay=5.3)@luck=2

/Coal Dirt Tower
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=dirt),posY=#bPosY+5;NBTTag=(Block=dirt),posY=#bPosY+10;NBTTag=(Block=dirt),posY=#bPosY+15;NBTTag=(Block=dirt),posY=#bPosY+20;NBTTag=(Block=dirt),posY=#bPosY+25;NBTTag=(Block=dirt),posY=#bPosY+30;NBTTag=(Block=dirt),posY=#bPosY+35;NBTTag=(Block=dirt),posY=#bPosY+40;NBTTag=(Block=dirt),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=coal_block),posY=#bPosY+50)@luck=0

/Diamond Obsidian Tower
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=obsidian),posY=#bPosY+5;NBTTag=(Block=obsidian),posY=#bPosY+10;NBTTag=(Block=obsidian),posY=#bPosY+15;NBTTag=(Block=obsidian),posY=#bPosY+20;NBTTag=(Block=obsidian),posY=#bPosY+25;NBTTag=(Block=obsidian),posY=#bPosY+30;NBTTag=(Block=obsidian),posY=#bPosY+35;NBTTag=(Block=obsidian),posY=#bPosY+40;NBTTag=(Block=obsidian),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=diamond_block),posY=#bPosY+50;type=entity,ID=LightningBolt,posY=#bPosY+10,delay=5.3)@luck=2

/Gold Wool Tower
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=wool),posY=#bPosY+5;NBTTag=(Block=wool),posY=#bPosY+10;NBTTag=(Block=wool),posY=#bPosY+15;NBTTag=(Block=wool),posY=#bPosY+20;NBTTag=(Block=wool),posY=#bPosY+25;NBTTag=(Block=wool),posY=#bPosY+30;NBTTag=(Block=wool),posY=#bPosY+35;NBTTag=(Block=wool),posY=#bPosY+40;NBTTag=(Block=wool),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,posY=#bPosY+50,NBTTag=(Block=gold_block);type=particle,ID=flame,size=(1,2,1),particleAmount=500,delay=5.3;type=sound,ID=item.fireCharge.use,delay=5.3)@luck=1

/Falling Wet Beacon
group(type=fill,ID=air,size=(1,19,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=beacon);type=entity,ID=FallingSand,posY=#bPosY+12,NBTTag=(Block=flowing_water))@luck=1@chance=0.4

/Falling Dry Beacon
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=beacon))@luck=2@chance=0.4

/Falling Note Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=noteblock);type=particle,ID=note,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=note.bassattack,delay=2)@luck=1

/Falling End Portal Frame
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=end_portal_frame);type=particle,ID=spell,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=game.player.swim.splash,delay=2;type=fill,ID=air,size=(1,8,1))@luck=0

/Falling Sea Lantern
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=sea_lantern);type=particle,ID=mobSpell,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=dig.glass,delay=2)@luck=1

/Falling Sponge (Dry)
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=sponge);type=particle,ID=angryVillager,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=dig.grass,delay=2)@luck=1

/Falling Diamond Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=diamond_block);type=entity,ID=LightningBolt,delay=2)@luck=1

/Falling Emerald Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=emerald_block);type=particle,ID=happyVillager,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=dig.grass,delay=2)@luck=1

/Falling Gold Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=gold_block);type=particle,ID=flame,size=(1,2,1),particleAmount=500;type=sound,ID=item.fireCharge.use)@luck=0

/Falling Iron Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=iron_block);type=particle,ID=largesmoke,size=(1,2,1),particleAmount=500;type=sound,ID=random.fizz)@luck=0

/Falling Lapis Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=lapis_block);type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=game.neutral.swim.splash)@luck=0

/Bedrock Tower
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=bedrock),posY=#bPosY+5;NBTTag=(Block=bedrock),posY=#bPosY+10;NBTTag=(Block=bedrock),posY=#bPosY+15;NBTTag=(Block=bedrock),posY=#bPosY+20;NBTTag=(Block=bedrock),posY=#bPosY+25;NBTTag=(Block=bedrock),posY=#bPosY+30;NBTTag=(Block=bedrock),posY=#bPosY+35;NBTTag=(Block=bedrock),posY=#bPosY+40;NBTTag=(Block=bedrock),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=bedrock),posY=#bPosY+50)@luck=-1

/Falling Glowstone Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=glowstone);type=particle,ID=lava,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=dig.glass,delay=2)@luck=1

/Falling Snow Block
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=snow);type=particle,ID=crit,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=dig.snow,delay=2)@luck=1

/Falling Anvil
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=anvil);type=particle,ID=footstep,size=(1,2,1),particleAmount=500,delay=2;type=sound,ID=random.anvil_land,delay=2)@luck=1

/Falling Jukebox
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=jukebox);type=particle,ID=footstep,size=(1,2,1),particleAmount=500,delay=2)@luck=1

/ baby player
type=entity,ID=ArmorStand,NBTTag=(Small=true,NoBasePlate=true,ShowArms=true,Equipment=[(id=stone_pickaxe,Count=1),(id=leather_boots,Count=1,tag=(display=(color=#rand(0,16777215)))),(id=leather_leggings,Count=1,tag=(display=(color=#rand(0,16777215)))),(id=leather_chestplate,Count=1,tag=(display=(color=#rand(0,16777215)))),(id=skull,Damage=3,Count=1,tag=(SkullOwner=#pName))],Rotation=[#pYaw+180f,0f],CustomName="Baby #pName",CustomNameVisible=true)@luck=0
/Wither 2.0
group(type=difficulty,ID=hard;type=command,delay=0.4,ID=\"/title @p[name=#pName] title {text:\"Mob Battle\",color:dark_red,bold:true}\";type=command,ID=\"/title @p[name=#pName] subtitle {text:\"WITHER 2.0\",color:blue}\";type=entity,ID=WitherBoss,NBTTag=(Equipment=[(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],Attributes=[(Name=generic.maxHealth,Base=5000),(Name=generic.attackDamage,Base=30)],CustomName="$b$lWither 2.0",CustomNameVisible=true);type=sound,ID=random.explode;type=command,ID=\"/playsound records.strad @a ~ ~ ~ 3.0 1.0\",delay=0.5)luck=-2

/ ==== Monster Apocalyple ====
/ sword, difficulty, time, potion effects
group(ID=wooden_sword;type=difficulty,ID=hard;type=time,ID=18750;type=effect,ID=slowness,duration=30,amplifier=4;type=effect,ID=blindness,duration=30; \
/ zombies, creepers, spiders & cave spiders, silverfish & endermites, guardians
group:1:(type=entity,ID=Zombie,amount=#rand(20,50);type=entity,ID=Creeper,amount=#rand(10,30);group(type=entity,ID=Spider,amount=#rand(15,45);type=entity,ID=CaveSpider,amount=#rand(5,10));group(type=entity,ID=Silverfish,amount=#rand(15,45);type=entity,ID=Endermite,amount=#rand(5,10));type=entity,ID=Guardian,amount=#rand(10,30); \
/ all
group(type=entity,ID=Zombie,amount=#rand(20,50);type=entity,ID=Creeper,amount=#rand(10,30);group(type=entity,ID=Spider,amount=#rand(15,45);type=entity,ID=CaveSpider,amount=#rand(5,10);type=entity,ID=Silverfish,amount=#rand(15,45);type=entity,ID=Endermite,amount=#rand(5,10);type=entity,ID=Guardian,amount=#rand(10,30)))),posOffset=#circleOffset(8,10))@luck=-2

/ ============ ERRORS ============

/Error 404
type=message,ID=$2Error 404. Drop not found@luck=-1

/Cupid’s Message and Rose
group(type=command,ID="/tell #pName Hey, #pName. Let me help you towards reaching your relationship goals. To conquer your crush's heart, just give him or her this romantic flower. Trust me. This works anywhere, anytime, and any place.",commandSender="Cupid";ID=red_flower,NBTTag=(display=(Name="$cRomantic Rose")))@luck=1

/Deceased Villager’s Message
group(type=command,ID="/tell #pName Hello, #pName. I died a long time ago, in a desperate attempt to save my village. I was slaughtered by Bob. If you ever see him, use this sword. You only have one chance, so please avenge him, not for me, but for my people",commandSender="Deceased Villager";ID=iron_sword,damage=250,NBTTag=(ench=[(id=16,lvl=127)],display=(Name=$fBob Avenger)))@luck=0

/The Fortuneteller’s Message
group(type=command,ID="/tell #pName Listen to me, #pName. I predict that one of these days, you will die from a Lucky Block. Don't believe, me? Look, there's the skull of your future dead self. So think again before opening them.",commandSender="The Fortuneteller";ID=skull,NBTTag=(display=(Name="$8Skull of your Future Self")))@luck=-1

/Trapped Silverfish Message
group(type=command,ID="/tell #pName Hey, friend. Because of the Lucky Block, I have been trapped in this stone for ages. Please! Free me from my misery! I will forever be in your debt.",commandSender="Trapped Silverfish";ID=monster_egg,NBTTag=(display=(Name="$2Free Me")))@luck=0

/The Grim Reaper’s Message
group(type=command,ID="/tell #pName Hey, #pName. You can't see me, but I'm right behind you, waiting for you to die from a Lucky Block. Soon enough, you shall begin your journey towards death.",commandSender="The Grim Reaper")@luck=-1

/Thug From the Ghetto Message
group(type=command,ID="/tell #pName 'Sup, #pName? These lucky blocks don't play, huh?. Know what? Here. Take ma' lucky charm, homie. Hope ya' don't die soon.",commandSender="The Thug From the Ghetto";ID=gold_nugget,NBTTag=(display=(Name="$2Good Luck Charm")))@luck=0

/Chronos, God of Time Message
group(type=command,ID="/tell #pName Hello, #pName. In life, you always need to know what the time is. So here. Take this clock.",commandSender="Chronos, God of Time";ID=clock)@luck=0

/Fortuna, Goddess of Luck Message
group(type=command,ID="/tell #pName Hello, #pName. I remade the block you just opened, but with +100 Luck. Enjoy!",commandSender="Fortuna, Goddess of Luck";ID=lucky:lucky_block_night,NBTTag=(Luck=100))@luck=1

/Randomly Teleported
group(type=command,ID=\"/tp #pName #rand(-25000000,25000000) #rand(64,250) #rand(-25000000,25000000)\";type=effect,ID=resistance,Amplifier=5,Duration=100;type=message,ID=$eThis Lucky Block teleported you to a random location)@luck=-2@chance=0.5

/ ========== STRUCTURES ==========

/ traps
type=structure,ID=anvil_trap,pos=#pPos,rotation=#pDirect@luck=-2
type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect@luck=-2
type=structure,ID=water_trap,pos=#pPos@luck=-2  
type=structure,ID=pit_trap,pos=#pPos@luck=-2

/ lucky fort and temple
type=structure,ID=luky_fort,pos=#pPos@luck=1
type=structure,ID=lucky_temple,pos=#pPos@luck=2
type=structure,ID=lucky_temple_b,pos=#pPos@luck=-1
type=structure,ID=lucky_temple_f,pos=#pPos@chance=0.4@luck=2
type=structure,ID=lucky_temple_n,pos=#pPos@luck=1

/ bedrock problem
type=structure,ID=bedrock_problem,rotation=#pDirect@luck=-1

/ explosion
group(type=difficulty,ID=hard;type=explosion,radius=6)@luck=-2

/explosion and evil
type=explosion,radius=10,fire=false@luck=-1
type=explosion,radius=20,fire=true@luck=-2
type=explosion,radius=15,fire=true@luck=-1

/ choice of 2 lucky blocks
group:1:(type=structure,ID=lucky_choice_left,rotation=#pDirect;type=structure,ID=lucky_choice_right,rotation=#pDirect)@luck=0

/Explosion
type=explosion,radius=4@luck=-2

/Lightning Storm
group(type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=3;type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=10;type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=17;type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=26;type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=36;type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=46;type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=58;type=entity,ID=LightningBolt,amount=60,posOffset=#circleOffset(2,35),delay=69;type=entity,ID=LightningBolt,amount=55,posOffset=#circleOffset(2,35),delay=79;type=entity,ID=LightningBolt,amount=40,posOffset=#circleOffset(2,35),delay=88;type=entity,ID=LightningBolt,amount=100,posOffset=#circleOffset(2,35),delay=100;type=message, ID=$cLIGHTNING STORM)@luck=-2

/BOO! (Elder Guardian Appearance)
group(type=particle,ID=mobappearance;type=sound,ID=mob.guardian.curse;type=message,ID=$9BOO!)@luck=-1

/Randomized TNT Explosions
group(type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=3,posOffset=#circleOffset(5,50),delay=1;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=3,posOffset=#circleOffset(5,50),delay=5;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=6,posOffset=#circleOffset(5,50),delay=10;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=11,posOffset=#circleOffset(5,50),delay=15;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=13,posOffset=#circleOffset(5,50),delay=25;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=12,posOffset=#circleOffset(5,50),delay=30;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=14,posOffset=#circleOffset(5,50),delay=36;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=10,posOffset=#circleOffset(5,50),delay=44;type=message,ID=$2Random Explosions)@luck=-2

/Get Rekt (50 TNT Explosion)
group(type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=50;type=message,ID=$2GET REKT)@luck=-2

/New Crater on Earth (150 TNT Explosion)
group(type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=150;type=message,ID=$2There’s going to be a new crater on Earth today)@luck=-2@chance=0.8

/TNT Everywhere
group(type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=450,posOffset=#circleOffset(5,125);type=message,ID=$2This terrain is screwed.)@luck=-2@chance=0.4

/TNT Follower
group(type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=1;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=2;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=3;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=4;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=5;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=6;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=7;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=8;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=9;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),pos=#pPos,delay=10;type=message,ID=$2Try to escape)@luck=-2

/Get Burnt
group(type=fill,ID=glass,posX=#pPosX-1,posY=#pPosY-1,posZ=#pPosZ-1,size=(3,5,3);type=fill,ID=lava,pos=#pPos,height=3;type=message,ID=$2GET BURNT)@luck=-2

/Get Webbed
group(type=fill,ID=web,posX=#pPosX-4,posY=#pPosY-1,posZ=#pPosZ-4,size=(10,4,10);type=fill,ID=web,pos=#pPos,height=3;type=message,ID=$fGET Stuckt)@luck=-1

/Get Suffocated
group(type=fill,ID=bedrock,posX=#pPosX-1,posY=#pPosY-1,posZ=#pPosZ-1,size=(3,5,3);type=fill,ID=bedrock,pos=#pPos,height=3;type=message,ID=$8GET SUFFOCATED)@luck=-2

/Zeus Punishment
group(type=entity,ID=LightningBolt,amount=25,pos=#pPos;type=message,ID=$8Lightningstorm!)@luck=-2

/Night Archer Punishment
group(type=entity,ID=Arrow,amount=#rand(50,100),NBTTag=(Motion=#randLaunchMotion,damage=4.5);type=message,ID=$eArrow rain)@luck=-2

/ wishing wells
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:steam_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bYour wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=dye,damage=4,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=iron_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:steam_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$eYour wish came true! (If you like potatoes)\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=potato,amount=128,posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=baked_potato,amount=64,posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=poisonous_potato,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=1
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:steam_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$4Your death wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20)"]))@luck=-2
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:steam_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$4Run for your live!\“;type=block,ID=air,posY='#'bPosY+3;type=block,ID=lava,posY='#'bPosY+2;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=99;type=entity,ID=WitherSkull,posY='#'bPosY+7,amount=99;type=entity,ID=Blaze,posY='#'bPosY+7,amount=99;type=entity,ID=XPOrb,posY='#'bPosY+7,amount=5000)“]))@luck=-5@chance=0.5
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:steam_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bYour firework wish came true!\";type=block,ID=lava,posY='#'bPosY+3;type=time,ID=1700000;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=#rand=(3,30),FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=#rand=(25,50),posY='#'bPosY)"]))@luck=1
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:steam_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$4The END is near!\“;type=block,ID=end_portal,posY='#'bPosY+3;type=block,ID=lava,posY='#'bPosY+2;type=entity,ID=EnderDragon,NBTTag=(Attributes=[(Name=generic.maxHealth,Base=30),(Name=generic.attackDamage,Base=300)],CustomName="$b$lENDERDRAGON",CustomNameVisible=true)),posY='#'bPosY+7,amount=99;type=entity,ID=Enderman,posY='#'bPosY+7,amount=99;type=entity,ID=Endermite,posY='#'bPosY+7,amount=99;type=entity,ID=XPOrb,posY='#'bPosY+7,amount=5000;type=command,ID=\"/playsound records.strad @a ~ ~ ~ 3.0 1.0\",delay=0.5)“]))@luck=-1@chance=0.5
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:steam_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bGot blocks!\“)];type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=#rand=(20,40),posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=gold_block,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond_block,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=emerald_block,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=lapis_block,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=iron_block,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2


/bouncing castle
type=structure,ID=bouncing_castle,pos=#pPos,rotation=#pDirect@luck=0
type=structure,ID=bouncing_castle,pos=#pPos@luck=0

/ giant lucky blocks
type=structure,ID=giant_lucky_block_good,rotation=#pDirect@luck=2
type=structure,ID=giant_lucky_block_bad,rotation=#pDirect@luck=-2
type=structure,ID=giant_lucky_block_death,rotation=#pDirect@luck=-2

/ ========== ENCHANTED ITEMS ==========

/ lucky block book
ID=written_book,NBTTag=(author=„Morplson“,title="$e$lLucky Block Book",pages=["$l$nThe Lucky Block$r\n\nThe Lucky Block ($ofortunus blockus$r) was brought to Minecraft by the gods to reward the good and punish the evil.","The player's true self will be revealed after mining this block.\n\nSome fear it, and others have been made rich by it.","You must mine it and be prepared for whatever will follow.\n\nIt is not luck.\n\nIt is $bdestiny."])@luck=0
/ lucky sword
ID=diamond_sword,NBTTag=(ench=#luckySwordEnchantments,display=(Name="$e$lLucky Sword"))@luck=2
/ lucky bow
ID=bow,NBTTag=(ench=#luckyBowEnchantments,display=(Name="$e$lLucky Bow"))@luck=2
/ lucky fishing rod
ID=fishing_rod,NBTTag=(ench=#luckyFishingRodEnchantments,display=(Name="$e$lLucky Fishing Rod"))@luck=2
/ lucky tools
group:#rand(1,2):(ID=diamond_shovel,NBTTag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Shovel"));ID=diamond_pickaxe,NBTTag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Pickaxe"));ID=diamond_axe,NBTTag=(ench=#luckyAxeEnchantments,display=(Name="$e$lLucky Axe"));ID=diamond_hoe,NBTTag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Hoe")))@luck=2
/ lucky armor
group:#rand(1,2):(ID=diamond_helmet,NBTTag=(ench=#luckyHelmetEnchantments,display=(Name="$e$lLucky Helmet"));ID=diamond_chestplate,NBTTag=(ench=#luckyChestplateEnchantments,display=(Name="$e$lLucky Chestplate"));ID=diamond_leggings,NBTTag=(ench=#luckyLeggingsEnchantments,display=(Name="$e$lLucky Leggings"));ID=diamond_boots,NBTTag=(ench=#luckyBootsEnchantments,display=(Name="$e$lLucky Boots")))@luck=2
/ lucky potion
ID=potion,damage=8195,NBTTag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Potion"))@luck=2
/ unlucky potion
ID=potion,damage=16428,NBTTag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lUnlucky Potion"))@luck=1
/Kangaroo Potion
type=item,ID=potion,damage=8203,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=8,Amplifier=5,Duration=2000)],display=(Name=$6Kangaroo Potion,Lore=["Jump Boost V"]))@luck=1

/The Flash Potion
type=item,ID=potion,damage=8194,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=1,Amplifier=50,Duration=2000)],display=(Name=$2The Flash Potion,Lore=["Feel like Usain Bolt"]))@luck=1

/Statue Potion
type=item,ID=potion,damage=8202,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=2,Amplifier=15,Duration=2000),(Id=8,Amplifier=128,Duration=2000)],display=(Name=$7Statue Potion,Lore=["You won't move"]))@luck=0@chance=0.8

/The Hulk Potion
type=item,ID=potion,damage=8201,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=5,Amplifier=15,Duration=2000)],display=(Name=$6The Hulk Potion,Lore=["Go Beast Mode"]))@luck=1

/Potion of Resurrection
type=item,ID=potion,damage=8197,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=6,Amplifier=10,Duration=500),(Id=10,Amplifier=4,Duration=2000)],display=(Name=$cPotion of Resurrection,Lore=["For emergency use"]))@luck=2@chance=0.8

/Improved Regeneration Potion
type=item,ID=potion,damage=16385,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=10,Amplifier=5,Duration=2500)],display=(Name=$cImproved Regeneration Potion,Lore=["Regeneration V"]))@luck=2@chance=0.8

/Protein Shake
type=item,ID=potion,damage=8198,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=23,Amplifier=10,Duration=700)],display=(Name=$fProtein Shake,Lore=["Your breakfast,lunch, and dinner:", "All in one drink"]))@luck=1

/Potion of Invincibility
type=item,ID=potion,damage=8201,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=11,Amplifier=5,Duration=1100)],display=(Name=$9Potion of Invincibility,Lore=["Resistance V"]))@luck=2@chance=0.7

/Insta-Kill Potion
type=item, ID=potion,damage=16396,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=7,Amplifier=20,Duration=500)],display=(Name=$7$lInsta-Kill,Lore=["Yeah, it's that potent"]))@luck=0

/Troll Potion
type=item, ID=potion,damage=16396,NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=7,Amplifier=1,Duration=500),(Id=9,Amplifier=3,Duration=1500),(Id=4,Amplifier=2,Duration=1500),(Id=15,Amplifier=3,Duration=1500),(Id=17,Amplifier=3,Duration=1500),(Id=18,Amplifier=2,Duration=500),(Id=19,Amplifier=2,Duration=1500),(Id=20,Amplifier=1,Duration=1500)],display=(Name=$a$lTroll Potion,Lore=["For Trolling Purposes"]))@luck=0

/Get Sick
group(type=effect,ID=nausea,duration=500,amplifier=5;type=message,ID=$It’s a virus)@luck=-1

/Get Blindfolded
type=effect,ID=blindness,duration=500,amplifier=5@luck=-1

/Get Weak
type=effect,ID=weakness,duration=500,amplifier=3@luck=-1

/Get Slow
type=effect,ID=slowness,duration=500,amplifier=3@luck=-1

/Ball of Mass Destruction
type=entity,ID=fire_charge,amount=5,posOffset=#circleOffset(0,6),posY=#bPosY+1,reinitialize=true,NBTTag=(ExplosionPower=7,direction=[0.0,0.0,0.0],CustomName="$eBalls of Mass Destruction",CustomNameVisible=true)@luck=0

/Jen's Special Hole
group(type=explosion,radius=1,fire=false;type=message,ID=$5Jen's Special Hole)@luck=0

/Fireworks Show!
group(type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=5;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=10,delay=6;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=15,delay=14;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=20,delay=22;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=20,delay=32;type=message,ID=$5FIREWORKS SHOW;type=time,ID=17000)@luck=1

/Ender Dragon Instakill
group(type=entity,ID=EnderDragon,NBTTag=(HealF=0);type=message,ID=$aThis Lucky Block insta-killed the Ender Dragon!)@luck=2@chance=0.4

/Flash Flood
group(type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=flowing_water),amount=350,posOffset=#circleOffset(5,100);type=message,ID=$9$lFLASH FLOOD)@luck=-1

/Lava Flood
group(type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=flowing_lava),amount=350,posOffset=#circleOffset(5,100);type=message,ID=$e$lLAVALAND)@luck=-2
